package module.map.model
{
	import drongo.desktop.selector.Selector;
	import drongo.desktop.undo.OperationRecorder;
	import drongo.model.propertys.ArrayProperty;
	import drongo.model.values.CollectionValue;
	
	public class MapModel extends CollectionValue
	{
		/**
		 * 选择器
		 */
		public var selector:Selector;
		/**
		 * 操作记录
		 */
		public var recorder:OperationRecorder;
		
		public function MapModel()
		{
			super();
			this.selector=new Selector();
			this.recorder=new OperationRecorder();
		}
		
		public function get nodes():ArrayProperty{
			return this.Get(Propertys.NODES) as ArrayProperty;
		}
		
		/**
		 * 导航边缘宽度
		 */
		public function get navWidth():Number{
			return this.Get(Propertys.NAV_WIDTH).GetValue();
		}
		
		/**
		 * 导航边缘高度
		 */
		public function get navHeight():Number{
			return this.Get(Propertys.NAV_HEIGTH).GetValue();
		}
	}
}